import http from "@/utils/request";

//封装项目的请求
/*  用户相关的请求  */


// 获取用户列表
function userRequest(per,page,userName,nickName){
    return http({
     method: "get",
     url: "/api/v1/admin/user",
     parmas: {per,page,userName,nickName},
    })
 }

// 单删
function userDelRequest(id){
    return http({
     method: "delete",
     url: "/api/v1/admin/user/"+id,
    data: {},
    })
 }

// 修改
function xgRequest(id,birthday, age,area ,address,nickName,gender){
    return http({
     method: "put",
     url: "/api/v1/admin/user/"+id,
    data: {birthday, age,area ,address,nickName,gender},
    })
 }


 export{userRequest,userDelRequest,xgRequest}